<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Pool
 *
 * @property int $id
 * @property string $name 挖矿币种名称
 * @property float $price 每T算力每个月托管价格（USDT）
 * @property int $min 起步配置1T，用户可以选择增加
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool whereMin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Pool whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class Pool extends Model
{
    public function getImgAttribute($image)
    {
        return config('image.url') . '/storage/' . $image;
    }
}
